package cn.nawang.ebeim.client.util;

public class Constants {
  
  public static final int IS_OPEN_LOCAL_BACKUP = 1;
  public static final int LOCAL_BACKUP＿MAX_DEFAULT = 10;
  public static String DESKEY="nawangdeedgnawan";
  
  public static final String IS_ENCRYPT_YES = "1";
  public static final String IS_ENCRYPT_NO = "0";
  
  public static final int BACKUPLOG_STATUS_UNFINISH = 2;
  public static final int BACKUPLOG_STATUS_SUCCESS = 0;
  public static final int BACKUPLOG_STATUS_FAILED = 1;

  public static final int DS_RUN_STATUS_NOT_RUNNING = 0;// 等待备份
  public static final int DS_RUN_STATUS_RUNNING = 1;// 备份中
  public static final int DS_RUN_STATUS_ERROR = 2;// 错误
  public static final int DS_RUN_STATUS_SUCCESS = 3;// 成功
  
  public static final int DS_STATUS_USE=0;//启用
  public static final int DS_STATUS_NOUSE=1;//停用

  public static final int SLEEP_MS_100 = 100; // 100ms
  public static final int SLEEP_MINUTE_5 = 300000; // 5分钟
  public static final int SLEEP_SECOND_5 = 5000;  // 5秒
  
  public static final byte FILE_TYPE_LARGE = 1;
  public static final byte FILE_TYPE_SMALL = 0;
  
  public static final long LARGE_FILE_SIZE = 1024*1024*10;
  
  public static final byte BACKUP_PERIOD_MONTH = 4;
  public static final byte BACKUP_PERIOD_WEEK = 3;
  public static final byte BACKUP_PERIOD_DAY = 2;
  public static final byte BACKUP_PERIOD_HOUR = 1;
  
  public static final int BACKUP_TIME_NOT_UPDATE = 0;
  public static final int BACKUP_TIME_UPDATE = 1;
  
  public static final String FILTER_NULL = "0";
  public static final String FILTER_SOME = "1";
  public static final String FILTER_NOT_SOME = "2";
  
  public static final String DS_TYPE_FILE = "0";
  public static final String DS_TYPE_DATABASE = "1";
  public static final String DS_TYPE_SAFEBOX = "2";
  public static final String DS_TYPE_TREE = "3";
  
  public static final String DB_SUFFIX = ".sql";
  
  public static final String ZOOKEEPER_HOST_NAME = "/ebeim";
  

}
